{% import 'macros.html' as mymacros %}
<div class="row">
    <fieldset>
        <div class="col-md-4">
            <div id="galleria">
                {% if obj.image %}
                {% for a in obj.image %}
                    <img src="{{ a.url }}">
                {% endfor %}
                {% else %}
                    <img src="{{url_for('static', filename='img/system/noimage.jpg')}}">
                {% endif %}
            </div>
            <h4>系统编号</h4>
            <p>{{obj.no}}</p>
            <h4>商品名称</h4>
            <p>{{obj.name}}</p>
            <h4>商品类型</h4>
            <p>{{obj.type|f}}&nbsp;</p>
            <h4>商品系列</h4>
            <p>{{obj.series|f}}&nbsp;</p>
            <h4>买入价格</h4>
            <p>{{obj.pPrice}}&nbsp;</p>
            <h4>卖出价格</h4>
            <p>{{obj.sPrice}}&nbsp;</p>
            <h4>款号</h4>
            <p>{{obj.styleNo|f}}&nbsp;</p>
        </div>
        <div class="col-md-4">
            <h4>重量</h4>
            <p>{{obj.weight|f}}&nbsp;</p>
            <h4>长度</h4>
            <p>{{obj.length|f}}&nbsp;</p>
            <h4>宽度</h4>
            <p>{{obj.width|f}}&nbsp;</p>
            <h4>高度</h4>
            <p>{{obj.height|f}}&nbsp;</p>
            <h4>手工尺寸</h4>
            <p>{{obj.length|f}}&nbsp;</p>
            <h4>净度</h4>
            <p>{{obj.clarity|f}}&nbsp;</p>
            <h4>颜色</h4>
            <p>{{obj.color|f}}&nbsp;</p>
        </div>
        <div class="col-md-4">
            <h4>金成色</h4>
            <p>{{obj.goldFineness|f}}&nbsp;</p>
            <h4>证书号</h4>
            <p>{{obj.certificate|f}}&nbsp;</p>
            <h4>备注</h4>
            <p>{{obj.remark|f}}&nbsp;</p>
            <h4>缩略图片</h4>
            <p>{{mymacros.render_thumb(obj)}}</p>
            <h4>附件</h4>
            <ul>
            {% for a in obj.attachment %}
                <li><a href="{{url_for('bpRoot.view',action='dl',id=a.id)}}">{{a.name}}</a></li>                
            {% endfor %}
            </ul>
            &nbsp;
        </div>
    </fieldset>
</div>